consolidate output prims into single source file
output prims cleanup: factor out common code