move the MarkedAsDelete logic auto of the document class in a trait class