Remove old in-app code and old stats (bug 865134)