This will fail if `barcode_type` is `'golay_12'`.