Refactor and fix mlbstats.