A longtime in-house leader at Thermo Fisher Scientific has parted ways with the global life sciences company to serve as the legal chief at Allegro MicroSystems Inc., which went public last year.