Streamline Code with FastAPI Dependency Injection