extract CallbacksInvoker to singleton file