Modularize fetching and display functionality in WeatherREST.