Refactoring SparkGraphElement to be trait rather then abstract class