Optimizer should remove all unnecessary parts from expression better.