Remove redundant code from LeakTask