Remove unnecessary messages.