[cleanup] Removed unneeded XWikiPreferences object