[Version Control] Refactor VCS Util functions.