Refactor for working gerrit download mirror