They're not always on top, you can have a remote mount discriminator valve. The hose must be routed so that it goes above the fluid level and then down so no fuel sits in the hose.
You can buy one of those plastic vents that camaros have (3rd gens). It's spendy but it's a white plastic pressure relief. It's not always open but it does relief at a certain pressure. The racing stuff uses much larger hoses, something in the -16 AN range.