Clean up metadata format. Merge events metadata into runtime metadata. Remove low value info (internal macro identifier and counters).