Refactoring messages to belong to a thread.