Move `NodeState` into the model module.