Refactor out github and chart functionality