From the task breakdown on 11 May T249836#6124657
Create a service that can go from a Title / LinkTarget object to an EntityId object.
- This is essentially the reverse of TitleLookupBasedEntityTitleTextLookup with some more logic
- The extra logic would be that from HtmlPageLinkRendererBeginHookHandler::doHtmlPageLinkRendererBegin
- parse the title part using an entity id parser to get the ID object.
- make sure that the namespace being used matches the entity type of the parsed ID