Refactor to use git_config