de-duplicate some of the listenToOnce wrapCallback logic