removes unused code from localized_discussions