This function is used in 3 places:
- Unit tests
- updateRolesAndPermissions
- deprecatedConvertClientDBThreadInfoToRawThreadInfo
We will deprecate updateRolesAndPermissions in subsequent diff in this stack, at which point this function will only be relevant for keeping existing "legacy" migrations functional. It will not and should NOT be used for migrations going forward because there are no encoded member permissions to be decoded in future persisted *RawThreadInfo.
Depends on D12597