why are you rebuilding expr? also, if you want to treat expr as a Mul then you should use `, as_Add=False` in `as_independent`