Removed editor selection logic from refactoring logic.