Putting platform specific method in another class