Refactor sentimentSpec