Use the Extract Method to refactor the application_helper