I don't understand why you have to do these operations here. It could be done in the `DoCleanJob` constructor. Then you would not need the `cleanJob` function.