Remove duplicate variables