Clean up ImproperlyConfigured stack trace.