The Fundamentals of Stream Restoration