The ecology of recovery