Fixed incorrect passing of metadata cache instance to metadata factory service