Instead of calling all of these functions from `RNA_def_nodetree`, call them from their respective node callbacks. This didn't work a few months ago, because these callbacks did not have the `brna` argument back then. Pull Request: https://projects.blender.org/blender/blender/pulls/138798