Collapsing leaf nodes if they have the same set of protocols