Clean up diagnostic messages.