Refactoring fileMigrationStrategy: Extracted the functionality for getting the migration position into separate functions i the