Remove dead and deprecated code (closes #149361) [applied]