We need to refactor nested ternary operators into independent statements or more readable control structures, in accordance with SonarQube rule S3358. Here's a full list of issues (currently - 10).