Clean up ProcessHooks class.