Move build method to StreamComponent, so it can be used even if you don't have a StreamOutput in hand