Revert "Remove additions to deprecated global ..."

This causes breakages in WikibaseDataModel and
Wikibase involving the WikibaseDataModel SnakTest.

Reverts 7715fee51c6f7aefe23ea78cccc168f483ce3a66.

Change-Id: Ic66442813528bb309d83bb61d2ea509c83421c73