Refactor the from_xml methods to act on existing trace objects.