A nonconforming structure may be not restored upon destruction or
damage, by fire or other casualty or act of God, to the extent that
the cost of restoration shall exceed the lesser of 50% of the cost
of replacement, or the market value of the entire structure, unless
such structure and all uses within conform to the provisions of the
zoning district in which it is located.