Put the packet type swizzling (that is currently done in a lot of places) into a refineCommand() member function.