This is a first step towards cleaning up some data type specific complexity in the filter loading code.