"I suspect most would agree that the best way out of poverty is to work yourself out of it"
It seems you most certainly are.
Not really. I'm saying that it's better, and more sustainable, for the poor to get out of poverty as a result of working than it is through welfare. Or to use Roydo's quote about fish and fishing from above.
At the moment, even if a farmer (for instance) is willing and able, they're often barred from trading with western countries by tariffs and quotas that block them out. That's wrong and in no way their fault.
Immigration is a similar barrier, because so many western countries block talented people from moving there to work and better themselves. You can see this with things like the
US tech industry complaining bitterly about the challenges they face in recruiting talented people from overseas.
Whether you're a software developer in Pune or a farmer in Nairobi, neither of those things are your fault, yet both are massively harming your potential to get on in life. I'm not really sure how you can construe any of that as an attack on those individuals?