DRYing up a little bit