Only transcript and query are used outside test code; the others should be made constants or settings.