I sadly don't think that is practical. Housing costs would go down if it was legal to build 20 story apartment buildings in areas currently zoned for single family homes. As a political YIMBY I would love to see this happen - but don't see how a court could be given discretion on its own to decide which zoning measures should be eliminated and which have legitimate reasons to exist.