Repetitive code refactoring.