I would have put this logic in the form subscriber instead. That way, the collector would be compatible with any versions of the Form component.