Byte parsing moved to one function