DRYed up the views