add factory class for MailchimpConfig service

having a closure in the module.config.php makes it impossible to cache