Trying to reuse GraphHopperBundle code when extending it

Hi,

We have created an extension of GraphHopper for customization purpose. Our current code is quite similar to this railway extension :

As with the OpenRailRounting code we created our own version of GraphHopperApplication, GraphHopperBundle and GraphHopperManaged classes.

Recently we upgraded to 0.13 and we add to copy new code from GraphHopperBundle 0,13 to our own version of the GraphHopperBundle class.

Is there a way to reuse the 3 classes above (GraphHopperApplication, GraphHopperBundle and GraphHopperManaged) and still be able to pass extended version of the DefaultEncoderFlagFactory and GraphHopper classes?

Thanks,

Mathieu