A nonconforming building or structure shall not be enlarged, increased, repaired, maintained, or modified in any manner which will further violate any regulation imposed by this chapter, except that a principal building which existed at the effective date of this chapter which is nonconforming as to a yard requirements may have repairs, improvements, maintenance, modifications, and additions made to those portions of the building located within the required yard, provided that no repair, improvement, maintenance, modification, or addition shall be made which will cause any part of the building to project into the yard farther than the building did at the effective date of this chapter.