Refacto new partner handler
The handler to add a partner is too long. Since we are adding more protocols, there are many conditions on partner type. Adding a switch could be a solution.
The handler to add a partner is too long. Since we are adding more protocols, there are many conditions on partner type. Adding a switch could be a solution.