some more refactoring of kaltura-migrations integration