[#912] Handle top-level constant resolution in DeprecatedClassMethods