Make the case statements use constants

https://trello.com/c/PrAtQFyb/32-adding-search-to-new-recipes-list