Add node classes to build definition object