Rework filter factories, add support for allowed attribute types.
Split up filter settings into their factories.