The "worms" are the larval stage of moth.
The beetles are the intermediate stage after the "worms".
The Moths are the grande finale.
The food should not give yr guys parasites, usually seed moths are harmless. Freeze it for a few days and if you order direct there should not be any moths.
I once had this problem with my pasta. I contacted the company and they refered to it as "infestation". I found that amusing.

