[COOK-2772] - resolve foodcritic errors