remove some deprecated API from framework