Same code copied-and-pasted means you should refactor. Add a method clone_header(name, oldmsg, newmsg) to PJUtils.