renamed rebuild function in request/response factories to from_msg