Merge topics based on offsets as well