The function:
@lru_cache()
def movie_repository(settings: Settings = Depends(settings_instance)):
"""
Movie repository instance to be used as a Fast API dependency.
"""
return MongoMovieRepository(
connection_string=settings.mongo_connection_string,