Moving out the helper methods that aren't extensions methods, to avoid namespace impossibilities.