Refactor Backbone code to use Router.