If you want to break them of this, you will have to put them in a metal dog crate or similar that does not have a solid bottom and it’s elevated off the ground for example on a few bricks or pieces of wood. All they get in there is food and water no bedding. I know it sounds cruel but you have to keep the air under them cool this breaks the hormone cycle and stops them from being broody. It can take a few weeks after this for them to start. I had Raven my olive Egger in the dog crate for about 24 hours and that’s all it took with her. The sooner you nip it in the bud the better. Apparently if you wait too long then it can go several months before they start laying again. There are several threads with detailed information on the forum, if you need more.