#3377: Remove deprecated as_coeff_terms and as_coeff_factors