I was doing that but then I realized that there were several places where the same block of code was being duplicated. These really go hand-in-hand when the HTTP request is invalidating.