Refactoring handling JDP Packet data.