def METHOD_NAME(use_case_id: UseCaseID) -> Optional[Quota]:
    """
    Construct write limit's quotas based on current sentry options.
    This value can potentially cached globally as long as it is invalidated
    when sentry.options are.
    """
    if use_case_id in USE_CASE_ID_CARDINALITY_LIMIT_QUOTA_OPTIONS:
        quota_args = options.get(USE_CASE_ID_CARDINALITY_LIMIT_QUOTA_OPTIONS[use_case_id])
    else:
        quota_args = options.get(
            "sentry-metrics.cardinality-limiter.limits.generic-metrics.per-org"
        )
    if quota_args:
        if len(quota_args) > 1:
            raise ValueError("multiple quotas are actually unsupported")
        return Quota(**quota_args[0])
    return None