Remove access to ProvidesMap internal data structure

Only test code was accessing this, modified to use the public API of the
class.