Deduplicating schemas and consolidating them into the metadata module