Cal. Bus. & Prof. Code § 17207
(d) If the action is brought at the request of a board within the Department of Consumer Affairs or a local consumer affairs agency, the court shall determine the reasonable expenses incurred by the board or local agency in the investigation and prosecution of the action.
Before any penalty collected is paid out pursuant to subdivision (c), the amount of the reasonable expenses incurred by the board shall be paid to the State Treasurer for deposit in the special fund of the board described in Section 205. If the board has no such special fund, the moneys shall be paid to the State Treasurer. The amount of the reasonable expenses incurred by a local consumer affairs agency shall be paid to the general fund of the municipality or county which funds the local agency.