Small refactoring to keep main homesick class smaller.

Small refactoring to move utility methods into their own module, keeping the main Homesick class smaller.