Avoid questions that simplify too much

Prevent things like #49447, #48301, #49186,  #48750, #47701, #46681
Also add some useful functions for factoring and dividing expressions by expressions which should be useful later.