removes redundant keywords from the lazy expression