ENH: simplify a structural sparseness calculation