Exclude duplicates from batches.