Augment instance_links by adding 'type', move the node and user implementations to where they belong.