for saving treatment factors
Reviewer: Dan Villafuerte (post-commit)