Removed defunct but anyway dead code.
Proper filtering of attic elements: item and id-query.