Move copy_note_for_rewrite + friends from builtin/notes.c to notes-utils.c