This could be in a Helper module. These are three funcitions used by all_decisions_controller.rb and restricted controller