Moved GitHub API access and Repository model creation to dedicated class