[COOK-2838] Fix foodcritic warnings