Why not making feature an object with 2 string attributes? (And a simple function to create the key for the storage in the container).