That constant is really needed? The object is of type `DisallowedMethod`, so you can work with the object type instead of that constant.