Simplified the providers factory method