Actually, that's exactly what I am working on with this. It also needs a way to, uh, not delete everything it picks up. I want to get around to testing if rail rotators can transfer cargo.
I'll post updates if you really want to know
Edit: I did it anyway, it still does the same thing but...