Move platform selection logic to it's own script.