SCORM generation refactoring