Dublin considers legislation to remove Perry