MDL-43089 remove most logic from get_randomquestion_form.