Moved Constraints marshalling into the StudyModel with the other objects.