remove duplicate expressions in entry_copy_bhfi()