Some cleanup in PacketDecoder.