This is the pump and filter for the outdoor pool. Any work done should straighten out the routing of the input run to the pump with the red shutoff valve in the middle of the picture. That run could be a simple vertical run. A higher quality shutoff valve is also a good idea.