Simplify mode conditional statement.