Revert "Change getRootView visibility to improve testability"

This reverts commit d3a44aaf7de34baaac258a0a39e633e716927cd5.