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? (8.8 KB)

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! (10.5 KB)