Looks like this should be

    return (SYNCHRONIZE_PRESERVE if preserve else SYNCHRONIZE) % { 'schema_name': to_identifier(schema_name) }