Split off provider.js