Those teeth are not involved in the ratcheting system. They are only how the freehub body attaches to the rest of the hub. The pawls are inside the freehub.
One additional consideration you need to account for is the chain stay width. 7s and 10s are not the same. You can spread a steel frame to fit, but it isn’t easy.
I tried to do what you want by disassembling the freehub body and keeping the base that fit my hubs, but it didn’t work. So I stopped at 9s.






Put them in an airtight container. Works for me with strawberries at least.