protected function preNotify($listener, $eventName, Event $event)
    {
        if (Events::SUCCESS == $eventName
            && $event instanceof GenericEvent
        ) {
            /*
             * 'ast' argument of 'reflect.success' event is used only by the cache plugin.
             *  Remove it improve performance.
             */
            if (is_array($listener)
                && !$listener[0] instanceof \Bartlett\Reflect\Plugin\CachePlugin
            ) {
                unset($event['ast']);
            }
        }
        return $event;
    }