Original sentence: However, thanks to Gyeongju's role as a provincial center under the Goryeo and early Joseon dynasties, the city was home to state-sponsored provincial schools (hyanggyo) under both dynasties
Edited sentence: However, due to Gyeongju's role as a provincial center under the Goryeo and early Joseon dynasties, the city was home to state-sponsored provincial schools (hyanggyo) under both dynasties