Split things out into multiple files

Signed-off-by: Ricky Elrod <ricky@elrod.me>