Move chromecast code to ChromeCastAdapter.