Refactoring in place