Revert Use reopenClass instead of reopen.