Partially refactor the create method in the Searches controller