code simplification, https://github.com/phetsims/scenery-phet/issues/412
code simplification, https://github.com/phetsims/scenery-phet/issues/412

phetsims/scenery-phet,phetsims/scenery-phet,phetsims/scenery-phet