def METHOD_NAME(project):
    org = project.organization
    rv = {}
    exclude_fields_key = "sentry:safe_fields"
    rv["excludeFields"] = org.get_option(exclude_fields_key, []) + project.get_option(
        exclude_fields_key, []
    )
    if org.get_option("sentry:require_scrub_data", False) or project.get_option(
        "sentry:scrub_data", True
    ):
        rv["scrubData"] = True
    if org.get_option("sentry:require_scrub_ip_address", False) or project.get_option(
        "sentry:scrub_ip_address", False
    ):
        rv["scrubIpAddresses"] = True
    sensitive_fields_key = "sentry:sensitive_fields"
    rv["sensitiveFields"] = org.get_option(sensitive_fields_key, []) + project.get_option(
        sensitive_fields_key, []
    )
    rv["scrubDefaults"] = org.get_option(
        "sentry:require_scrub_defaults", False
    ) or project.get_option("sentry:scrub_defaults", True)
    return rv