Add simplify/factor to expr() factory function