Some trivial code refactoring in FindTfsParentCommits.