Refactored an "Application" class constructor