I’ve seen Martin Fowler call something like what you’re describing the Strangler Fig pattern
https://martinfowler.com/bliki/StranglerFigApplication.html