Put platform code in a separate module.