As we lose some of the world’s most majestic animals, we also lose their very useful excrement