moving redirecting logic out of the behavior