Refactor conditionals with comments.