Extracted session config to factory class.
Added extension to format console output. Suppressed StyleCop SA1600.