The functionality of filtering a set of something by prefix is a separate concern from fetching the suggestions. It should be factored into a separate class.