Simplifying the brain_dialogue code

See title