Cleaned up code by deleting the method writeExportStudyInfo.