[migration] fix 3.15 deprecation warnings [applied]