1. remove snapshot converter 2. remove unused protobuf definitions 3. move some macro as const variables