Removing duplicate work from compaction.