Tidy anime quality detection code