Change to a republic