Group operations by path