t642: template VISTA_QA logic change based on Robin comments.