Stop using aliases outside Wikibase namespace

This is split from I687c61c.

Change-Id: I10d7c3a81f2ce00d82e79a50f715c82a0211f3be