Move packet handling logic from BaseNetDevice into BasePacketHandler.