How to facilitate legal and ethical layoffs