Dup new_code as insert modifies in place