Broke byte packing into its own function