Implement EntityIdParser as an Interface

This will break wikibase until I51019cda55f6
is merged

Change-Id: Ie153d30de497568e38381fd57248eddb748e2ba8