More small changes to avoid deprecated Q API methods.

I was trying to also eliminate a confusing deprecation warning printed by Q, but it turns out that's just a known (and now fixed) Q bug: https://github.com/kriskowal/q/issues/419