remove Groovy closure