Extract base urls to reduce line length