Stub provider factory architecture