Extracting a constant

To extract a constant from an expression: Related reference
Refactoring actions
Refactoring dialogs
Java preferences