Refactor scorm module