Refactor to no longer flatten ADSRecords xml; mongo now has similar <metadata> block schema