Refactoring action that selects/deselects scopes.