Moved code to create XML element to DocumentationElementFactory