Removes deprecated code