All nonconforming uses of land shall be discontinued and all nonconforming buildings or structures which cause substantial detriment to the public good shall be torn down, altered, or otherwise made to conform with the use provisions of this chapter within five years after May 26, 1986.