the `extract` signature is `public function extract(ResourceInterface $resource, $to = null);`