Extract some view helpers out of the view