Refactor to platforms.