Some minor refactorings over the ViewsHandler.php system class.