Taking control over migration will inevitably bring political pain