Re-apply "SemanticMediaWiki.hooks clean-up ラストスパート"

Re-applies #424 by reverting it's revert #428