In my family we often used to eat chicken and while eating them the only thing on mind was how it tasted and how it was cooked etc. Then my parents started rearing some chickens in their backyard. That changed everything. There were about 7 or 8 of them. As the chicks grew up, they could identify each of them and know about individual treats. They would call some of them by names and slowly their nature was becoming more evident. They still eat eggs but they eat chicken meat rarely at some social event. They cannot even think about killing one of the chickens that they have. Its just emotionally too painful for just food!
This really works i think. But you have to rear them in small numbers to get connected to animals and then observe the changes in your thinking. You may still have them for food but it would be a conscious decision which you would not take lightly, like considering it as some food lying around.
I actually have neighbors who treat their chickens like pets for several years then give them to someone to slaughter. They don't eat them but they're fine with other people eating them and they're fine with eating other chickens.
Unfortunately, this is often not the case in my own experience. It certainly does for some people, but that course is by no means universal. And when the well-being of other thinking, feeling individuals is at stake, I'd rather not rely on this kind of approach.