Extracting a factory for creating project objects from the json returned by Github.