[Cleanup] Added function parse_multi_endpoint_option which iterates over endpoints.
This avoids too deeply nested code.
[Cleanup] Removed parser from parameter list, as it is global.
Merge pull request #145 from erzb5e6f65/EndpointParsingCleanup

Endpoint parsing cleanup