Refactor to remove redundant git clone calls.