Refactored "Application::run" (extract method)