Refactor DuckDuckGo handler to use a response class to process the output.