This would be best as a decorator, but if nothing else would be better as a view helper.