def METHOD_NAME(doc_type):
    deleted = 'Deleted' in doc_type
    if deleted:
        doc_type = doc_type[:-1]
    if doc_type == 'CommCareUser':
        return es.filters.term("base_doc", "couchuser-deleted" if deleted else "couchuser")