Simplify some duplicate code in GameStateConfig*