Refactors fraction nodes.