Cut them and then wrap the ends in electrical tape to prevent them from contacting anything that might damage the hub.

I think Ethernet hubs are pretty resistant to ESD, but you could wear a ground strap while you're cutting them if you're worried.