Refactor get_filters between pymongo & mongoengine