Eliminate unnecessary condition