Inlining closure binding logic