Minor refactoring of GatherDbScriptsToRunDeploymentStep.