Scaling from species' traits to the maintenance of biodiversity in a changing world