mule and task refactoring