This is an infrastructural module in that the culprit is MouseX::NonMoose, whose
sole job is precisely to make MouseX::Foreign compatible with Any::Moose, so the
problem at hand is not "port to something else than Any::Moose", but rather
"stop supporting Any::Moose entirely". I doubt this will ever happen upstream
but still, I've poked them on their GitHub.
It would be technically easy to drop Any::Moose support on our side (that's
basically 2 × rm calls away), but that would be a significant divergence from
upstream, which I suppose is not warranted here, at least not right now.
Apart of the Any::Moose indicator: last upstream commit was 6 years
ago, tiny popcon, leaf package, only 3 reverse dependencies on CPAN
(of which 2 have not been updated since 2014), and finally the Mouse
ecosystem is essentially on life-support as the community has been
adopting alternate OO frameworks
⇒ I propose we remove this package.
I'll file the RM bug at some point after 2020-07-19, unless
(And in passing, I noticed that many other libmouse*-perl are in
similar situations, regardless of Any::Moose, so there's a good chance
you hear from me about them one of these days.)