Launching an air travel service when the COVID-19 pandemic has decimated commercial aviation is ambitious, to put it charitably.
What is the function of this infinitive phrase "to put it charitably"? Does it function as an adverb? If yes, what does it modify? Can anyone elaborate?