Updating substeps.js to use stepRegistry instead of definitionRegistry