Move prefix declaration outside of find_prefix_match().