Refactored CommandProcessor.cs to match StyleCop directives.