Refactor newStudy template params study one to many types