minor Insight code cleanup

preparatory to other changes for UI testing work
Merge pull request #1395 from mtbc/insight-tidyup

minor Insight code cleanup