Move platform to shared module for easier access and cleaner APIs