California Code
CHAPTER 2 - Accession to Personal Property
Section 1028.

1028. If one makes a thing from materials belonging to another, the latter may claim the thing on reimbursing the value of the workmanship, unless the value of the workmanship exceeds the value of the materials, in which case the thing belongs to the maker, on reimbursing the value of the materials.

(Enacted 1872.)