Use DIContainer instead of recreating API.