Cleanup hooks.php