Begin reducing duplicate code in graph edit implementations