Remove unnecessary Wikibase dependencies and stuff not in Gerrit now

Change-Id: I360eac3239199154abfe0f7e4bcf8b7212ddecfb