[tor-commits] [arm/master] Moving prepopulate_from_state() to be a function