Move a function out of the main controller and into the station model.