Reduce duplicated query["output"] access