clean up createChildView

This makes the code more clear and prevents overwriting arguments which likely
causes de-opts (though these fns probably still de-opt for other reasons).
:+1: