if the creation seems wrong with  optional key/values i would need to "park" the `allowedTypes` somewhere else - constants :-). Then this will work as you think.