refactor per-env attrs

in the same manner as ktc-monitor.