Copy configuration before extending to prevent properties persisting