Parents used to be advised to keep allergenic foods like eggs away from babies, especially if allergies ran in the family.