Large amounts of refactoring to share search code between the Subreddit and text input searches