DRYing up the views