Refactor reactor: move duplication into descriptive methods.