Remove unused json.
Do not handle logs in stats and metadata.