Implement load_class() helper.
Rework basic custom hook logic.