We should replace all these typehints with Elgg_ServiceProvider.