encapsulate worker/master logic in to being generic for different types of work being done