Code cleanup by allowing redirects through exceptions.