DRYing up some views