Refactor score.