In the case of, the replacing_version.destroy, the repos will be deleted. This should occur only if there are no other environments using this version.  In the 'else' case where we use delete, there are other environments using the version so we only want to unassociate the to_env.  In that case, the repositories will not be deleted (just the env association).