Is it reasonable to make a component like this?

Hello everyone!
I used the Rhino command “_conect” to make a grasshopper component with GHpython, but I don’t know if this is reasonable, and Rhino has a prompt “1 curve added to selection.” leaked out, is there a more reasonable code? Can I prevent this prompt from appearing?
Cvs_Con.gh (8.8 KB)
Thanks

is Grasshopper’s connect curves component not doing this already?

This is just for personal use, but I am not satisfied, I think there should be a better way!

Cvs_Con1.gh (10.5 KB)