Remove code duplication and return an immutable copy of streams.