The death sentence has been removed from eight criminal offences and replaced with life imprisonment for offenders.