Implement metadata cleaning from stale episode state information