We used to have local governments provide that sort of thing (and still do to an extent). One reason for the prevalence of HOAs is that they have a much easier time keeping out the riffraff with uncomfortably dark skin, but maybe people will just have to put up with them.