Refactor into gitGraph