Mexican bakery giant Grupo Bimbo is to close a production line at a plant in Spain.