Added "afterRemove" hook.