Refactor Selection.