DRYing up model