Migration to flatten opData object in existing MongoDB documents