The Extract Field refactoring creates a field which holds the selected expression as the value and replaces its occurrences by reference to this newly created field.

You can opt to:

In order to invoke the refactoring, select an expression to be replaced with a field or place the caret over an expression and press &shortcut:IntroduceField; (Refactor | Extract | Field... ):

This will result in the following: