Split out view utilities to a web.utils package