Better separation of metadata merging concerns from XML serializing concern