I don't believe so, however, the true purpose of api_mapping is just to canonicalize primitive types, so I could probably use .get() and just list those instead of enumerating every type. That should be cleaner and reduce the coupling a bit.