DRYing things up