THIRD AMENDED AND RESTATED CREDIT AGREEMENT Dated as of June 29, 2023 by and among SERVICE PROPERTIES TRUST,