Make 'registerServiceProviders' static

Suggested by @joshmoore and @rleigh-dundee.