Refactor score method to private method.