Some refactoring for IMS QTI 2.1 exporting