Removing redundent TS1 variables