Refactor view helpers.

Split things out to make things clearer. This also allows us to more
easily customise how we render Sir Trevor content.