[lib][web][native] Refactor cookieSelector
Summary: issue: https://linear.app/comm/issue/ENG-5005/refactor-cookieselector
Test Plan: Tested that ther refactored selectors work
Reviewers: michal, kamil, ginsu
Reviewed By: kamil
Subscribers: ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9733