Refactor whiteboard paper to use less variables