Transfered a part of the code into functions to be easier to make a transition to the new type of <conn>
Transfered a part of the code into functions to be easier to make a transition to the new type of <conn>

EliasVansteenkiste/ConnectionRouter,UGent-HES/ConnectionRouter,UGent-HES/ConnectionRouter,UGent-HES/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,UGent-HES/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,UGent-HES/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,UGent-HES/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,EliasVansteenkiste/ConnectionRouter,UGent-HES/ConnectionRouter,UGent-HES/ConnectionRouter