I suppose everyone's definition of good quality code differs but you have a point about starting from scratch and if the idea was to create a more general/modular then it might make sense.
All I can say is take a look, they've had to solve a lot of problems most variations would also need to solve but, even starting from scratch, the solutions could be brought over.