Reducing cyclomatic complexity in template redirect;