Hooks.php should be split into separate HookHandler files. This makes it easier to read and update the files, including the associated tests.
Currently the Hooks.php file contains 1200 lines and HooksTest.php contains 1400 lines. These could be split into multiple Hook Handler files, including:
- One for schema updates which are hard to test and often updated
- One for ones that insert events into the checkuser tables, which can be grouped together to still keep the insertion methods private.