Improve formatting of embedded Groovy code