Penalties are to be established only in so far as they are really necessary for the better maintenance of ecclesiastical discipline. Dismissal from the clerical state, however, cannot be laid down by a lower legislator.
Source: Code of Canon Law (Vatican.va)