MDL-52451 forms: replace deprecated function