Marked beforePaste as deprecated.