Replacing validation rules on the Treatment with Apex code