As I understand it, typically the costs of conducting a presidential primary election (renting facilities, use of voting machines, labor cost of county election officials and county poll workers, etc) is borne by the county and state in which the primary is being held.
In states that employ a caucus system to conduct presidential preference selection, who bears the costs associated with those activities?