Remove unused parts of PasteInfo
Simplify some of the code