Move streaming logic to a concern.