MDL-40313 questionbank: clean up trimming of category info