I am looking at a few options to do the same thing, filter the fuel from the pump. My compartment for the fuel station would not have room for the equipment you pictured but there are smaller filters or I will may go outside the compartment with filter mount and then bring line for hose back inside with plumbing.
It would be simple to add a filter in the suction line but these GPI RV8 pumps can't handle that. The filter needs to be on the pump output (pressure) side.
Too bad the RV builders don't install fuel filtration at the factory. Yes, it would raise the cost of manufacture but what's $50 extra gonna do to a 40 - 60 thousand dollar rig anyway???