Move the API to a module and create a base class for API handling.
Add an API method for getting the extractors