In most cases these methods do way more than what is needed. In some cases we are even mixing hide class (from ULS grid) and these methods, which is confusing (e.g. Special:PagePreparation).
Usage should be replaced with hide class from the grid, or separate prefixed class that does the same, and add/remove that class directly with JavaScript.
After fixing all instances, this can be enforced with eslint.