Cleanup template code style.