Refactor score map.