Refactored the XML parser and Collada document into an injected data class.