Tidied up the SerilogIntegration code.