Why shouldn't this be done? This is part of the internal API and constraint_type values are well defined by the internal usage and will raise an exception for any 3rd parties that don't follow it properly.