Reused the instance creators and class loader logic from Factories in ServiceLoader.