PacketInspector refactoring.