Factor out util stuff into GitUtil