Refactor CommitInfo