[AS7-6680] Remove unused variables from scripts.