Sometimes we define URLs for POST requests which are not defined for GET requests, such as "/residence", so redirecting to it after signing out results in a routing error. So instead of using the request referer, we're using the stored location devise uses, and we're not storing locations in POST requests.