Refactor factorial, conditional wasn't needed.