Expenditures of campaign funds for attorney's fees and other costs in connection with administrative, civil, or criminal litigation are not directly related to a political, legislative, or governmental purpose except where the litigation is directly related to activities of a committee that are consistent with its primary objectives or arises directly out of a committee's activities or out of a candidate's or elected officer's activities, duties, or status as a candidate or elected officer, including, but not limited to, an action to enjoin defamation, defense of an action to enjoin defamation, defense of an action brought for a violation of state or local campaign, disclosure, or election laws, and an action arising from an election contest or recount.
Ca. Gov. Code § 89514