Refactor pseudo-crate code into struct and methods.

Test: cargo run --bin health_report ; cargo run --bin migration_report
Bug: 339424309
Change-Id: I092795b5de40d5569814d31f2a3c390916b2f3ec
4 files changed