Refactor weather segments with grep path.