Refactoring of binary geometric mean.