Unlock this challenge:
In the refactoring process, why was the SmtpMailer object passed to the FriendHarvester class instead of just its configuration?
SmtpMailer
FriendHarvester
To reduce the number of constructor arguments in the FriendHarvester class.
To minimize the memory usage.
To make the code more complex.
To improve code reusability and allow for changing the mailer type.