Refactoring, DRYing up.