The proper thing to do is to sort out the items before the person is laid out. Once the person is laid out what is in the casket remains in the casket. Anyone who has worked weekends in a funeral home knows that.
Some people just view the casket as a piñata, I guess.