57740286 refactor barcode prefix calculation