Comcast announced that it would spin off most of its cable networks, including CNBC, into a separate entity.