Remove duplicate code since we already have it in the createTrial.html

Reviewer: Chika Arevalo

Issue: GCP-9547