Simplified merging of nodes.