Inject identity loader instead of context into identity manager.