Move url methods into urlUtil