Factoring out weather API requests into a separate file.