Cleanup g8 template