Refactor OFKernelEventObserver