Added a custom function to refine to extract the host from a URL