Generalizing first path part