Starting to factor out Apple API.