Generating Dependency Graphs for Impact Analysis in a Legacy System