[lib] Refactor the remaining part of the hash logic using specs
Summary:
We can iterate over specs and use the same logic which was used for each infos collection.
https://linear.app/comm/issue/ENG-4813/migrate-getclientresponsesselector-to-a-spec
Depends on D9048
Test Plan: Modify server state and check if state check fixes client state. Bring back the old implementation and check if the hashResults are the same.
Reviewers: kamil, bartek, inka
Reviewed By: kamil
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D9049