Deprecate internal use of afb_event