Remove closure support and add extra validation.
Add filter config to test module configuration and update DoctrineHydratorFactoryTest to setup a custom filter service.