Simplifying the conditional code to remove an unnecessary attribute set based on code review.