Refactoring ChatViewHooks.