Refactor byte utilities into their own module