Avoid building duplicated batches