LUN-1070 -- refactorings after code review
LUN-1070 -- fixed link validations
LUN-1070 -- updated migration