Refactored weather route logic