The Introduce Constant refactoring in BaseLanguage helps you simplify complicated statements in your code by moving a repeatedly calculated value into a constant. You can select an expression in the code and press &shortcut:IntroduceConstant; (Refactoring | Introduce Constant in the pop-up menu).