Extract out parsing proto file logic from ProtobufGen

I think the indent on all these should be in 2 spaces so they stay inside the class definition