All the callers of sign_request() follow it by doing this header push_back stuff; that points to putting this into a helper or even gluing them together.