Description
resolve() implements pre-caching and other features that are also useful for Wikidata entities. We should deduplicate shared code between these functions, bringing them to feature parity.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- delegate wikilambda_fetch and Wikidata fetch calls to the same shared function
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist