Add backwards compatibility to SharedMethod ctor