Ask not what AI can do, but what AI should do: Towards a framework of task delegability