Simplify decomposeMany logic, remove console.log

And also remove some trailing whitespace