DRYing up a little