Sentence fix

I think this: 

> The parent view doesn't have to know how it should set up a child view.

Should either be: 

> The parent view doesn't have to know how to set up a child view.

or: 

> The parent view shouldn't have to know how to set up a child view.

Right? The sentence, how it is now, mixes these two approaches and it was slightly confusing to me while reading it.