SALISBURY, Md. (AP) — Maryland-based Perdue Farms says it will stop the controversial practice of inserting plastic into its male chickens’ nostrils.

In a statement released this week, the company says it will use another method to prevent them from eating the food of nearby hens. That will involve converting animal feeders.

The company says the practice will end by January. Arkansas-based Tyson Foods announced earlier this summer that it’s also phasing out the practice.

The method has drawn criticism from animal rights groups such as Compassion Over Killing who say it’s painful for the chickens.

The group claimed victory after Perdue’s announcement. But it said it will continue to address other concerns, such as birds being genetically manipulated to produce more meat.

Follow @CBSBaltimore on Twitter and like WJZ-TV | CBS Baltimore on Facebook

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.