Revert "Move out divisor code."

This reverts commit 8880cf8a6439376f8f41f76fa0abcdb1427f4264.