Refactor fizzbuzz