Refactors nl_setView().