Refactor django filters