Simplify some expressions