Where a district council, a London borough council or the Common Council , or a county or county borough council in Wales—
the council may carry out on the land mentioned in paragraph (b) of this subsection such works as appear to the council to be necessary for the purpose of removing the danger.
Where such a council—
the council may serve on an owner or occupier of the land a notice specifying the excavation and stating that the council proposes to carry out, for the purpose of removing the danger in question, such works as are specified in the notice at such places on the land as are so specified.
If any person having an interest in or a right over land in respect of which a notice is served in pursuance of the preceding subsection objects to the notice on one or more of the following grounds, namely—
he may, during the period of 21 days beginning with the date on which the notice was served, appeal to the county court against the notice.
On such an appeal the court shall either quash the notice or dismiss the appeal or, where a ground of the appeal is the ground specified in paragraph (b) or (c) of the preceding subsection, modify the notice so that it refers only to works or, as the case may be, places which the appellant agrees or the appellants agree are appropriate for the purpose of removing the danger; but the notice shall not be modified by the court so as to refer to a place on land of which no appellant is an owner or occupier.
If no appeal in pursuance of subsection (3) of this section is made against a notice within the period mentioned in that subsection or if on such an appeal the appeal is dismissed or the notice is modified as mentioned in the preceding subsection, the council which served the notice may, at any time after the expiration of that period or, as the case may be, after the appeal is dismissed or the notice is modified, carry out the works specified in the notice at the places so specified.
It shall be the duty of a council by which works have been carried out in pursuance of this section to maintain and repair the works except—
Where it appears to a council by which works have been carried out in pursuance of this section that if the works were removed the excavation in question would not be a danger to the public, then—
. . . A district council, a London borough council or the Common Council , or a county or county borough council in Wales, may pay to any person the whole or part of the expenses incurred by him in carrying out works for preventing or removing danger to the public from an excavation made at any time by some person on land in the area of the authority, whether or not the person who incurred the expenses had a duty to carry out any such works.