Why not use directly `@options[:before_redirect]` here instead of having a parameter?