Split the XML-Schema-specific code away from the Avro-specific code.