now you have made allowedType static, you can remove the optional key/values in the constructor.