Implemented key-value pair collection factory.