Elucidating the Role of Thermal Flexibility of Hydrogels in Protein Refolding