[lib][web][native] Refactor actions in user-actions.js pt.2
Summary: issue: https://linear.app/comm/issue/ENG-5281/refactor-logout-and-deleteaccount-actions
Test Plan: tested that the actions work and no errors show up.
Reviewers: michal, kamil, ginsu
Reviewed By: michal
Subscribers: ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9645