MEDIUM / Refactored PasteHandler management