If it becomes necessary for a public entity to take over the completion of any contract, all of the amounts owing the contractor, including the withheld percentage, shall be applied: First, toward the cost of completion of the contract; second, toward performance of the public entity's withholding requirement set forth in section 38-26-107, C.R.S.; third, to the surety furnishing bonds for the contract work, to the extent such surety has incurred liability or expense in completing the contract work or made payments pursuant to section 38-26-106, C.R.S.; then, to the contractor. Such retained percentage as may be due any contractor shall be due and payable at the expiration of thirty days from the date of final acceptance by the public entity of the contract work.
C.R.S. § 24-91-104