Moved helper method from config/application.rb to proper place in RepositoriesHelper.