ConnectionsOptimizer implemented. It is responsible for actually optimizing two parallel/series connections into one connection.