Generalize optional prepending of USE_EXPAND.