No, you're right. Just using the config var in the closure should be fine.