Refactoring control