Refactoring sequence