An example of refactoring.