Extend node sharing to all types of nodes