Article 571 of the French Civil Code
If, however, the labour were so great that it far exceeded the value of the material employed, the industry would then be deemed the principal part, and the workman would have the right to retain the thing worked, by refunding to the owner the price of the material, estimated at the date of the refund.