Species' traits predict the effects of disturbance and productivity on diversity.