[hotfix] [core] Refactor state utility methods into PersistedRemoteFunctionValues

This brings state management logic closer to
PersistedRemoteFunctionValues, which actual has the responsibility for
state management and access.
2 files changed