.refactoring : externalize score calculation for more visibility within test