Streamline fetch_url() to reduce redundancies.