It doesn't make sence to rewrite all Context classes to LegacyContextStub and keep that in the migrated code.
A better approach might be to add information/todos how to change the code here, to get it work.
Neos\ContentRepository\Domain\Service\ContextFactoryInterface
Neos\ContentRepository\Domain\Service\ContextFactory
Neos\Neos\Domain\Service\ContentContextFactory
It doesn't make sence to rewrite all Context classes to LegacyContextStub and keep that in the migrated code.
A better approach might be to add information/todos how to change the code here, to get it work.
Neos\ContentRepository\Domain\Service\ContextFactoryInterfaceNeos\ContentRepository\Domain\Service\ContextFactoryNeos\Neos\Domain\Service\ContentContextFactory