Clean up field template to fit compilation.