Packet parsing system refactor