Handle barcodes from assortments correctly