Isolate platform specific code in different modules