SImplify controller code by implementing helper static methods