Any way to work around that capturing closures cannot be materialized as runtime values? - Modular