Fix for handling the treatment factor when passing it to the bv design

Reviewer: Tiff Go

Issue: GCP-9457