Moved userData creation to the NodeFactory