Providers initialization moved to separate function