refactor how treatments are used in turkserver