Revert "We optimize the code in Build Repo"

This reverts commit efd5bb8e5abb07c8e030b5f17c6748cda0caf55a.