Small refactor of paternity-calculator