Removing pre BlackBerry 10 code