Cleanup capture templates.