It worked for Elon Musk, who moved Tesla from high tax California to the Lone Star State.