Minor clean up for code review

Code clean up based on code review in pull request https://github.com/DynamoDS/Dynamo/pull/1298/files#r10694765