DRYing the controller a bit