Move hide.*Buttons functions to UWI

Change-Id: Iad8d37df8c467dda73e9bfbee18297f7c69d899f
Phabricator: http://fab.wmflabs.org/T464