Is the body of the deceased pure or impure?

Q: Is the body of the deceased, before giving ghusl, regarded as paak or napaak i.e. is the deceased body treated like a person in the state of hadath (i.e. if the water which touches the deceased’s body comes on to the person giving ghusl, the water will not be regarded as napaak and impure) or is the actual body of the deceased treated as something impure like an animal which dies a natural death is treated as impure (i.e. if the water which touches the deceased’s body comes on to the person giving ghusl, the water will be regarded as napaak and the person will have to cleanse his body of that water)?