Poultry worms do not have dark line down the center. Here's a photo of a maggot. I believe you are dealing with Fly Strike, not worms. Please see post #2 in this link for treatment:
https://www.backyardchickens.com/threads/hens-have-worms.1593213/#post-27074039