Merge old modes into new modes.