Refactor refreshStops().