Better memory management

Is there a reason this line has the order `off().removeData().empty()` and the other two instances it immediately below are `empty().off().removeData()`?  If so, can you add a comment?  If not, can you make them the same so I don't wonder again in the future?