Fix urls.defaults deprecation