refactoring for Migrator.cs
fixing according code review
Merge pull request #1174 from a-chumagin/refactoring

Refactoring Migrator.cs