Refacgtoring with link Relationships between Nodes