Adds #unregister method to remove registered providers.