[lib] refactor resetting user state to ops
Summary:
Convert logic to ops approach.
Depends on D10758
Test Plan:
- Logout
- Make sure logic and output from this action is the same
Reviewers: inka
Reviewed By: inka
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10759