Make the LocationsController a little more DRY