The above code is placed in PostInitialize function of TechnologyCoreModule.cs. I have set Migrator project as startup.
PostInitialize
TechnologyCoreModule.cs
The IWebUrlService interface is registered in the web layer.
If you need you should write an implementation in the Migrator layer.