Change hook macros into functions and clean up HookMgr.cpp.