Refactor view->line reallocation