DRY refactoring.