Thomas Aquinas,
Summa Theologiae — Question 38 - OF THOSE WHO CONFER THIS SACRAMENT…
“ It would seem that heretics and those who are cut off from the Church cannot confer Orders. For to confer Orders is a greater thing than to loose or bind anyone. But a heretic cannot loose or bind. Neither therefore can he ordain.Objection 2: Further, a priest that is separated from the Church can consecrate, because the character whence he derives this power remains in him indelibly. But a bishop receives no character when he is raised to the episcopate. Therefore he does not necessarily retain the episcopal power after his separation from the Church. ”
