Use inheritance for NodeWithDef