Returns right instance in provider builder