refactor: separate git helpers