[UPDATE] extracted metric calculation from distribution streams.