Extract bit processing into BitBytes class