Remove duplication in application helper