Remove duplicate variables from Dough