Evolutionarily Driven Domain Swap Alters Sigma Factor Dependence in Bacterial Signaling System