Reorginize Urls class logic.