factor out unregistration to mapPair, https://github.com/phetsims/axon/issues/316
factor out unregistration to mapPair, https://github.com/phetsims/axon/issues/316

phetsims/axon,phetsims/axon,phetsims/axon