Refactor platforms