minore cleanup for XmlFactory construction, removing redundancy