Bowling kata refactor