Refactor revs diff serialization to better separate logic.