Generalization for MergeChroma and MergeLuma too.