Move helper methods to top in home routes