Or you can keep the smaller apartments and make boarding schools more common. Small kids all live in the same room while the ones old enough to need their own space move out completely to a boarding school. Depending on the specifics, may be a much better solution overall.
I actually attended high school in that way in Poland, despite it being very rare here. I was 15 when I started. While I think it was great for me, I would not recommend doing it for younger people - you need some basic emotional maturity and safety.
Even then, it would not solve any problems here, really.