Refactoring of the arc2warc-migration-hdp application