Clean up unused variables from scripts