Add the ability to remove a specific action or filter callback.
Remove unused variable.
Refactoring of _runHook(). Move the hook type test out of the loop