Extract common fragment