Refactored processing of email address/group designation parameters into a utility function.