Fix performance regression

Remove course_from_id
don't fetch whole course when the root will do
don't fetch even the root if the id will do

@chrisndodge @dianakhuang @sarina @nasthagiri some subset of you, please review

I had removed it as superfluous and expensive and then thought I should be more conservative and delete's not called oftn. I can remove it for real.