Moved the `Hook` class to the top directory.