Fixes depracation warnings when wrapping methods in InstanceMethods module