Buildings have purposes and limitations. They can fail by not accomplishing their purpose sufficiently or by being limited in a way that defeats their purpose.
Limitations are economic, legal, or physical. Two of those can be bent or changed.
You can work around many problems with enough effort and money. For example, if you have a bedroom, you can buy lightproof curtains to block the windows (but this impedes airflow). You can turn off overhead lights and buy lights that go in the places and colors that you want. These are relatively easy and cheap compared to rebuilding.