Extract generic parts from the classic worker