refactor memento purge attributes