let me try to understand here. You mean that you want to use getProv to get all elements which have form fromUnion, and stripProv will get all elements other than fromUnion.