reorganize page shredding code into traits