DRYing up controllers a little bit.