Some code duplicates removed

Removed a code duplicate from ClassRecorder and MethodRecorder classes.
The duplicated code was the whole method setStructuralDependencies().
The Pull Up Field refactoring method was used and after the refactoring
the method is in the AbstractEntityRecord class.
Also some minor duplicates were removed.