refactoring: Extract Helper for Redirection