Remove obsolete code from worker