Separate ViewManager from routes.js.