Remove redundancies in app.rb file