I think the $loggerConfig is needed here and shouldn't be removed.