extracting paths to constants