[1]: http://www.forbes.com/sites/instituteforjustice/2014/01/29/c...
[2]: http://www.agriculture.ny.gov/fs/consumer/processor.html
Legal codes requiring certain minimum standards exist for good reasons. Home-scale kitchens are impossible to scale to commercial levels of quality and service without cutting corners that can make food dangerous.
And sometimes for bad reasons. Couple of examples - cooking meat to 160 F / 71 C, Nycity inventing dangers of sous vide. The whole zone thing. Food codes sometimes grossly misinterpret or twist science. Or are made towards large scale operation - you will almost certainly have contamination when cracking 1 000 000 eggs. But with basic chance of even having salmonella in the egg 1/20000 even very sloppily prepared breakfast will be safe.
I am rather obsessed with food safety in my own kitchen but I don't see that obsession something that ought to make the cooked food business as highly regulated as it is. As with the sous vide example or the ridiculous import ban on certain French cheeses, the government overreach is stifling. For example, a chipped tile in a NYC kitchen could result in a health code violation. Does a chipped tile really pose that much of a food safety risk? Regulation seems to be a mild form of extortion, especially in NYC. You get a C rating but want an A? If you know the right people in NY, that 'problem' can be easily fixed -- irregardless of the actual violations in question! The shakedown aspects of local health departments is astounding.