Simplify logic for .once listeners.