Making logic to handle UI for view filterer more flexible.
This commit moves the logic for determining whether the "unfiltered"
attribute that is passed to the template into its own method, making it
easier to override in subclasses.