Move study to a separate file.