Is it actually producing an `HttpResponse`, and if so, maybe it's better that the intermediate function return a string and then have the view wrap it in a response object, and the template helper just dump out the string.