Decouplinc connection configuration from endPoints