Which of the following is the primary function of the gizzard?