Pull the flat map related operations out of the SpoutProvider