Flat-hierarchy merge