Yale University filed suit on Friday over a Connecticut building code that has blocked the law school from converting some of single-gender bathrooms into gender-neutral ones.

The law school, at the behest of students, has been trying to convert some of its restrooms since last year, but its plan ran afoul of the Connecticut State Building Code, the deputy State Building Inspector concluded. That code requires a certain number of gender-specific bathrooms, and the conversion plan would render the law school’s main building—constructed in the 1920s—out of compliance, the inspector ruled in December.

The university appealed that decision to the State Codes and Standards Committee in February, complete with testimonials from students detailing the hardships they face with only gender-specific restrooms.

“The proposed shift in designation to gender neutral and associated Code modification would facilitate quick access to a bathroom within the building for all gender identities, eliminate discomfort expressed by trans and gender non-conforming Law Schools students in using gender specific restrooms and promote the equal treatment of trans and gender non-conforming students,” reads Yale’s petition for an administrative appeal

filed in Connecticut Superior Court.

Yale’s plan calls for designating most single-user restrooms as gender neutral—while still counting those restrooms toward the state’s gender-specific requirement. It would also convert two multi-user restrooms into gender-neutral ones. The state’s building code prohibits reducing the number of gender-specific and assigned fixtures below the number required in new construction, yet strict compliance with the code would entail “practical difficulty or unnecessary hardship,” on the law school building, Yale argued.

Space constraints prohibit converting the single-user restrooms into gender neutral ones, while also constructing new gender-specific restrooms needed to satisfy the code, according to the university’s complaint. New bathrooms would also impact the “architecturally significant interior spaces of the building,” the complaint reads.

Yale argued that a number of cities, including New York, Washington, San Francisco and Austin, now require all single-user restrooms to be gender neutral.

The State Codes and Standards Committee heard the university’s appeal in March but was not swayed. It affirmed the inspector’s denial in May, with a 2-1 decision.

It’s now up to the court to resolve the law school battle of the bathrooms.

The case is not being handled by any of the law school’s myriad legal clinics. The university is represented by Joseph Hammer, a partner in Day Pitney’s real estate redevelopment practice.