I would remove this here, as the form element manager should be configured correctly, so it has the factory already or not.