WinRT: minor refactoring