Refactor Rust's crate declarations.