LogUtil: Some cleanups preparing to remove dependency on uniform grids