Moving git commands into own class