Refactor composer and added FoundationServiceProvider.