Refactor json callbacks for repo and contributor count