Section 127B1/2. At any time prior to or during the course of proceedings conducted pursuant to section one hundred and twenty-seven B, resulting solely from contaminated media caused by a release of home heating oil or from the detection of dangerous lead paint levels, as determined under the authority of section one hundred and ninety-four, or in the event the state environmental code pursuant to section thirteen of chapter twenty-one A requires the repair, replacement or upgrade of a septic system the owner of a structure used for human habitation may petition the board of health in a city or town to make findings consistent with its authority under this chapter and may enter into an agreement, subject to appropriation, authorizing such board of health or such owner to cause the premises to be properly serviced by a septic system, removal of a residential underground fuel storage tank, removal of contaminated media caused by a release of home heating oil or to have removed any dangerous levels of lead paint, as determined under the authority of section one hundred and ninety-four, at the owners expense. An owner who enters into such an agreement shall be responsible for all expenses incurred by the board of health, directly or indirectly, or required by the board of health and incurred by the owner for such repairs, replacement, or upgrade of a septic system, removal of a residential underground fuel storage tank, removal of contaminated media caused by a release of home heating oil or removal of dangerous levels of lead paint. A notice of such agreement shall be recorded as a betterment and be subject to the provisions of chapter eighty relative to the apportionment, division, reassessment and collection of assessment, abatement and collections of assessments, and