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.

Source: CivC 1877, § 593; CL 1887, § 3216; RCivC 1903, § 909; RC 1919, § 511; SDC 1939, § 51.1204.