Refactoring patterns.