Refactor the code into chunks we can use in the talk.