Fix deprecation warning wrt module InstanceMethods