Eventually, slaughterhouse facilities will become more and more automated, so there will be fewer humans required to do the dirty work.
Then someday AI and robotics could be fully integrated into killing the animals. There is a big looming question. What if the robots see the earth as a farm and want to kill people as well as the farm animals?