Optimize refactoring cleanup files (#7144)
Optimize refactoring cleanup files (#7144)

* Optimize refactoring cleanup files

* Use reduce

cpojer/jest,cpojer/jest,facebook/jest,bookman25/jest,bookman25/jest,cpojer/jest,facebook/jest,facebook/jest,ide/jest,ide/jest,bookman25/jest,ide/jest