Localize function registry to Gamestate.switch().