Use an EntityIdFormatter for statement's properties.

Currently, the code that generates links for the properties associated
with statement groups re-implements the logic of EntityIdHtmlLinkFormatter
(twice). This patch makes it so an EntityIdFormatter is passed in for this
purpose.

Bug: T75888
Bug: T64724
Change-Id: Ia0be6bf52790a9c637832ed50e1f50f232ca5ef4
Merge "Use an EntityIdFormatter for statement's properties."