refactor current StateSchema usages to specific factory function, https://github.com/phetsims/phet-io/issues/1781
refactor current StateSchema usages to specific factory function, https://github.com/phetsims/phet-io/issues/1781

phetsims/phet-core,phetsims/phet-core,phetsims/phet-core