Converting fetcher from object to class