The analogy reminds me of Shrek. Ogres have layers, so they're like onions, which have layers, but not like cakes that have layers? I think the article would have been fine without that analogy, and just dove into the relationship and differences between the 'layers'.