Remove unused code.
Remove unused code.
Remove unused/unwanted code.

Some of this is just old horrifying stuff.

TODO: Remove document references from schemes/rules.
Fix the ever-breaking button position.

Clicking on this in Xcode crams it into a corner and murders it. Still
not really sure why.
Remove unused function.
Remove unused _document field and initializers for them.