Allow the merge_adjacent_partitions_closure to be virtualized.