Function that determines how the state key is derived.
The key is additionally prefixed with current scene, if any.
Function that determines how the state key is derived.
The key is additionally prefixed with current scene, if any.