Refactored code so that methods for initialization are near each other in pluribus_switch.