Extracted into VmHelper.cs