The recall affects shredded cheeses sold at major retailers across 31 states, including Kentucky and Indiana.