Agree that it does look like it's going to a bait tank. The whole thing is a mess like you said and IMHO it all should be replaced or at least cleaned up. You may need both those bilge pumps if that plastic valve goes. That kinda valve is OK to use above the water line however you want a seacock like the one below for your thru hull.
strick