Helper methods should be in the class, not outside. In this case this should be in JobPost.