Cal. Prob. Code § 16370
(a) This section applies when either of the following occurs:
(c) A fiduciary shall determine the income and net income of an estate or income interest in a trust that terminates, other than the amount of net income determined under subdivision (b), under Article 4 (commencing with Section 16340), Article 5 (commencing with Section 16360), and Article 7 (commencing with Section 16375), and by doing the following:
(2) Paying, from income or principal, in the fiduciary’s discretion, fees of attorneys, accountants, and fiduciaries, court costs and other expenses of administration, and interest on estate and inheritance taxes and other taxes imposed because of the decedent’s death, but the fiduciary may pay the expenses from income of property passing to a trust for which the fiduciary claims a federal estate tax marital or charitable deduction, only to the extent that either of the following conditions is met:
(3) Paying from principal other disbursements made or incurred in connection with the settlement of the estate or the winding up of an income interest that terminates, including both of the following: