Hens naturally scratch around and form "their" nest as opposed to one that is already formed, some hens do it more than others. If you have an old established flock, they eventually get that exact "bowl" shape they like and that rearranging of the bedding stops, everyone uses the same "bowl".
To decrease kicked out bedding, the nest boxes need to be small
enough to help them form that bowl shape they love so well or have deep enough bedding that they can form the bowl shape in the middle, so if your boxes are too wide or too shallow, they will continually dig and build until they get the desired shape that will cup their eggs and not allow them to roll about when the hen dismounts from the box.
Deeper nest box, smaller width and deeper depth, or deeper bedding with a box that will contain it all when it is rearranged~these changes can help you. Just imagine a bird's nest you find and then imagine that your
chicken needs to make the same shape, then make her a box in which she can do that without kicking out the bedding.
Chickens like to sit down
into a box or nest as opposed to perching up on one and visualizing the world about them...they sort of like to hide while they lay, so some people even place light curtains over the opening of the box to create this feeling for them.