Refactoring to use `app.views` namespace