Maybe combine this with `get_where_clause`? Since his repo is completely unmaintained, keeping his methods untouched doesn't really win us anything, no?