Competence, discretion and third country nationals: The European Union's legal struggle with migration