Remove member function updateState in State class