ENH: cleanup merge_labels method