Refactored deprecated request scope usage in console command.