Filter records with custom handlers.