To be fair, it was probably a part of the system he inherited rather than his own idea.
However, it is interesting to compare this with the same Criminal code as it was introduced into Catalonia.
My abbreviated notes (from Macdonald's Bulletins) state:
>Penalties afflictive or infamante:
Death, the galleys, whipping or branding (but branding was banned by former government in 1807), perpetual forced labour, public works, imprisonment. (but a royal order of 1771 restricts these to 10 years)
Infamante only: le carcan (iron collar), deportation.<
Which suggests that the former Spanish government had been rather less brutal in these matters than the current French one. I assume that the former rulings were being applied in Catalonia or they wouldn't have been mentioned.