Move serialize/deserialize fuzzing to separate function

In the future there will be other fuzzing handled in this
fuzzer. Moving the existing code to a separate function to
make adding new fuzzing simpler.

Bug: 170243740
Test: Builds and runs
Change-Id: I7b0f6b70f6d3855d67c0230b8ec78a16251c50c8
1 file changed