BaseTools: remove loop and variables.