Refactor language stats methods