Remove duplicate variable assignment in MessageUtil