Cleaning the body, removing impurity and using fragrance belong to the funeral-washing procedure. Cutting hair or nails and styling hair for adornment are different actions.
The legal distinction is between appropriate cleansing and unnecessary alteration of the deceased.