Make hemisphere code more dry