Would probably be worth adding a PJUtil method for this (remove all headers with a specified name).  PJSIP has a pjsip_msg_find_remove_hdr API, but unfortunately this only works for the headers it knows about, not arbitrary header names.

Also, we should probably check that there aren't abbreviated forms of any of the header names we will use with this.