Abstract some code away.
Cleanup.