Changed the flattenSchema to work with the AvroTraversal