Refactors import/export url functions