refactored record filter hierarchy in filter.py module