Revert "Get Longest Prefix"

This reverts commit 934ed73712fc4d513f1c2cd65ddcf7d4b291ac8c.