Move Sinatra library calls to app router.