Towards Generalizing Defect Prediction Models