Local Regulation of Nonconforming and Unsafe Structures