Refactor score into private methods.