Merge sparsely populated branches