Function of Glass bead on EMI Filter Legs
The beads are entirely a mechanical feature, and they are rather important.

They ensure that there is enough lead length between the PCB and the filters. The filters are brittle. If you don't provide sufficient lead length, the thermal strains from cycling the board temperature couple too tightly to the ceramic substrate of the filter. This could fatigue the substrate itself, but most usually will fatigue the pin attachments first, leading to "flaky" behavior that's hard to diagnose.