Civil Code § 8434
ARTICLE 3. Amount of Lien
A direct contractor or a subcontractor may enforce a lien only for the amount due pursuant to that contractor’s contract after deducting all lien claims of other claimants for work provided and embraced within that contract.