Move assignments outside match expressions in JS-to-Rust conversion code.