Moved state-handling operations interfaces into kernel impl, since they are not part of the API.