Add ability to inject the registry into Mapping.build