Refactor bulk message processing.

Rename function for consistency.