Cleaning up Generator class by moving API methods into their own files.