Separate obtaining of shipping method code into a class method.