Refactor after Rust's Bitv reform.
Refactor after Rust's serialization reform.
Refactor after Rust's update to repeat().