Got rid of deprecated constants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER as per rails-upgrade plugin.