Code cleanup by removing some deprecated methods on SemanticModel.