Migrating previous DI for the new engine.