Move collatz processing to separate module.