Add partition and brokers list configuration to the constructors for both Consumer and Producer.