Removing no-longer-needed closures to fix an IL generation error