OneOf implementation for registry.