Refactoring. Part 1