Refactoring guidelines