Could you create this within the `if (stepData.video)`? We would avoid to instantiate a function that we could not use.