Extract method in GitHosting::Config