Make allowedValues private.
Move constraints into packages.