Convert schema definitions to flat maps.