Remove statistics file and refactory other files.