Dependency injection for typer
