extract the common behaviour of callbacks container from CallbacksInvoker into an abstract base class called CallbacksHandler