[TASK] Extract migrateMetadataAction to service