refactor helper methods into the ims-lti gem