Code reuse! Woo!

But seriously, I am still proud for remembering that much calc in my last commit message for this file.