That is how it went in the other colonial empires, including Britain though. In fact while the UK abolished slavery in 1837, it only finished paying off its debt of reparation to slaveowners in 2015.
But it should be mentioned that Napoleon also reinstated slavery after he became emperor, so I highly doubt he abolished it on Malta for personal convictions.