cleanup: reorg a few things

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>