Get rid of duplicate handlers (where the code for IS_TMP_VAR and IS_VAR operands is the same)