Moved helper methods out of controller to bounty helper