Unified bit checking method when registering event handlers.