remove deprecated InstanceMethods idiom