Remove dependency on URL module.