Refactor stateFns map to be rune-keyed