Clean up bigint code a bit.