XWIKI-9480: "Upgrade all wikis" option does not work.

* Refactor.