Refactor uima-worker