Move platform-specific functionality to static class.