Restructured many of the reduce/divisible functions