Nothing in this title shall require any change in plans, construction, alteration or designated use of a structure for which a valid building permit has been legally issued and construction commenced prior to the adoption of the ordinance codified in this title and subsequent amendments to this title, except that if the designated use will be nonconforming it shall be discontinued if not in operation within two years of the date of issuance of the building permit;