Refactoring of medJobItem and medRunnableProcess